package cn.net.msg.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import cn.net.msg.dao.TbAnnounceDao;
import cn.net.msg.model.TbAnnounce;
import cn.net.msg.service.base.Order;

@Component("tbAnnounceService")
public class TbAnnounceService {
    
    @Resource(name="tbAnnounceDao")
    private TbAnnounceDao dao;
    
    @Transactional
    public List<TbAnnounce> getExamsPapersForList(int firstIndex,
            int maxResult, Order order, String propertyName){
        return dao.getAnnounceForList(firstIndex, maxResult,order, propertyName);
    }
}
